# encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')

class FT_0109:
    result=[]
    analysisDescription = ['自定义消息体长度：','模块个数：','算子数据项列表：']
    analysis0109Length=[2,1,0]

    def LogicAisle(self, protocolStr, header):
        str_len=protocolStr[0:4]
        model_total=int(protocolStr[4:6],16)
        header.append(self.analysisDescription[0]+str_len+'\n')
        header.append(self.analysisDescription[1]+str(model_total)+'\n')

        s=protocolStr[6:]
        count =0
        for i in range(model_total):
            suanzi=s[count:count+14]
            s1=suanzi[0:2]
            s2=suanzi[2:]
            header.append("模块："+s1+'\n')
            header.append("算子："+s2+'\n')
            count += 14
        self.result=header


